package com.oa.co.mapper;

import com.oa.co.pojo.LeaveInformation;
import com.oa.co.vo.DepartmentBarVo;
import com.oa.co.vo.DepartmentPieVo;
import com.oa.co.vo.LeaveInformationVo;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

/**
 * @author zhao chen qi
 * @date 2023/5/8 17:53
 */
public interface LeaveInformationAdminMapper {

    List<LeaveInformation> selectStaffLeaveRequestList(LeaveInformation leaveInformation);

    List<DepartmentBarVo> getBarData();


    List<DepartmentPieVo> getPieData();

    int editStaff(LeaveInformation leaveInformation);

    int addLeaveInformationData(LeaveInformation leaveInformation);

    @Delete("delete from leave_information where id = #{id}")
    int deleteStaff(Integer id);


    List<LeaveInformationVo> selectStaffLeaveRequestList2(LeaveInformationVo leaveInformationVo);

}
